package leetcode.D100.T19;

import util.ListNode;
import util.ListUtil;

/**
 * @File Info: leetcode -- <M19>
 * @Author: DYZ
 * @Create: 2021-08-09 14:34:56 星期一
 */

public class M19 {
    public static void main(String[] args) {
        ListNode head = ListUtil.parseListNode("[1,2,3,4,5]");
        int n = 5;
        ListNode result = new Solution().removeNthFromEnd(head, n);
        ListUtil.printListNode(result);
    }
}
